/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-11-04
 * Time: 15:27
 */

public class TestDemo {
    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addFirst(12);
        list.addFirst(23);
        list.addFirst(34);
        list.addFirst(45);

        list.display();
//
//        list.addLast(99);
//
//        list.display();
//
//        System.out.println(list.addIndex(5, 98));
//        System.out.println(list.size());
//        list.display();
//
//        System.out.println(list.contains(12));

        System.out.println("删除之后！");
        list.remove(34);
        list.display();

    }
}
